#include "stdafx.h"
#include "TestSite.h"
#include "Site.h"
#include "SmartPointer.h"
CPPUNIT_TEST_SUITE_REGISTRATION( TestSite );
using namespace PDMS::PDMSDomain;
using namespace PDMS::PDMSFrame;

TestSite::TestSite()
{
}


TestSite::~TestSite()
{
}

void TestSite::TestSiteReg()
{
	Tree* pTree = PDMSClassRegister::Instance()->CreateObject("Site");
	Site* pSite =static_cast< Site*>(pTree) ;
	CPPUNIT_ASSERT( pSite != NULL );
	UeSmartPtr<Site> SmartObject(pSite);
	CPPUNIT_ASSERT( pSite->IsKindOf( UE_RUNTIME_CLASS( Site ) ) );
	
}
